package com.info.consumer;

import com.info.api.Animal;

public class ConsumerApplication {

    public static void main(String[] args) {
        ClientProxy proxy = new ClientProxy();
        Animal animal = proxy.clientProxy(Animal.class, "localhost", 9000);
        final String runResult = animal.run();
        final String speakResult = animal.speak();
        System.out.println("runResult = " + runResult);
        System.out.println("speakResult = " + speakResult);
    }
}
